package com.kehutong.crm.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

@Table(value="t_words_owner", comment="私人常用语",multi=true)
public class WordsOwned extends Entity {

	private static final long serialVersionUID = -4700612955969914357L;

	protected WordsOwned(String id) {
		super(id);
	}


	@Column(comment="父标志")
	private String pid;

	@Column(comment="话术库归属人")
	private String userId;

	@CheckField("常用语不能为空")
	@Column(length=255, comment="常用语")
	private String name;



	@Column(comment="逻辑删除")
	private boolean deleted;


	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
}
